﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TestJQGrid.Management
{
    public class dump_commented
    {
        //get row count
        //int rc = rowCount;
        //if (colCount <= 1) rc = rc - 1;



        //                                                <!--ajaxToolkit:CalendarExtender ID="calendarButtonExtender" runat="server" TargetControlID="TBFrom"
        //                        PopupButtonID="IBCalendarFrom" Format="dd-MMM-yyyy" Animated="false" />
        //                    <asp:TextBox runat="server" ID="TBFrom" Width="100px" />
        //                    <asp:ImageButton runat="Server" ID="IBCalendarFrom" ImageUrl="~/img/calendar-icon.gif"
        //                        AlternateText="Click to show calendar" Width="20px" />
        //                    <asp:Label ID="LabelTo" runat="server" Text=" TO " Width="50px"></asp:Label>
        //                    <asp:TextBox ID="TBToDate" runat="server" Width="100px" />
        //                    <asp:ImageButton ID="IBCalendarTo" runat="server" ImageUrl="~/img/calendar-icon.gif"
        //                        Width="20px" />
        //                    <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TBToDate"
        //                        PopupButtonID="IBCalendarTo" Format="dd-MMM-yyyy" /-->


        //<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
        //<%@ Register Assembly="Trirand.Web" Namespace="Trirand.Web.UI.WebControls" TagPrefix="Trirand" %>


        //    <!-- The jQuery UI theme that will be used by the grid -->
        //    <link rel="stylesheet" type="text/css" media="screen" href="/themes/redmond/jquery-ui-1.8.2.custom.css" />
        //    <!-- The jQuery UI theme extension jqGrid needs -->
        //    <link rel="stylesheet" type="text/css" media="screen" href="/themes/ui.jqgrid.css" />
        //    <!-- jQuery runtime minified -->
        //    <script src="/js/jquery-1.4.4.min.js" type="text/javascript"></script>
        //    <!-- The localization file we need, English in this case -->
        //    <script src="/js/trirand/i18n/grid.locale-en.js" type="text/javascript"></script>
        //    <!-- The jqGrid client-side javascript -->
        //    <script src="/js/trirand/jquery.jqGrid.min.js" type="text/javascript"></script>
        //    <script src="/js/trirand/jquery.jqDatePicker.min.js" type="text/javascript"></script>




        //JQDateFromDate.CurrentText, JQDateToDate.CurrentText
        //                <!--asp:MenuItem Text="Master Table Structure" 
        //            Value="Master Table Structure" 
        //            NavigateUrl="~/Management/TableMgmt.aspx" Enabled="False" Selectable="false"></asp:MenuItem-->

        //DelimitedFileEngine dengine;

        //if (tableName == "Schemes")
        //{
        //    dengine = new DelimitedFileEngine(typeof(Schemes));
        //}
        //else if (tableName == "ModelManufacturer")
        //{
        //    dengine = new DelimitedFileEngine(typeof(ModelManu));
        //}
        //else
        //{
        //    return null;
        //}


        //protected void GridView1_Sorting(object sender, GridViewSortEventArgs e)
        //{
        //    DataTable dataTable = GridView1.DataSource as DataTable;

        //    if (dataTable != null)
        //    {
        //        DataView dataView = new DataView(dataTable);
        //        dataView.Sort = e.SortExpression + " " + ConvertSortDirectionToSql(e.SortDirection);

        //        GridView1.DataSource = dataView;
        //        GridView1.DataBind();
        //    }
        //}

        //protected void GridView1_PageIndexChanging1(object sender, GridViewPageEventArgs e)
        //{
        //    GridView1.PageIndex = e.NewPageIndex;
        //    DataTable dt = (DataTable)ViewState["fileData"];
        //    //dt.
        //    GridView1.DataSource = (DataTable) ViewState["fileData"];
        //    GridView1.DataBind();

        //}
        //private string ConvertSortDirectionToSql(SortDirection sortDirection)
        //{
        //    string newSortDirection = String.Empty;

        //    switch (sortDirection)
        //    {
        //        case SortDirection.Ascending:
        //            newSortDirection = "ASC";
        //            break;

        //        case SortDirection.Descending:
        //            newSortDirection = "DESC";
        //            break;
        //    }

        //    return newSortDirection;
        //}



    }
}